home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / traceroute.postinst < prev    next >
Encoding:
Text File  |  2010-07-18  |  1.0 KB  |  44 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. case "${1}" in
  6.     configure)
  7.         update-alternatives --install \
  8.             /usr/bin/traceroute traceroute /usr/bin/traceroute.db 100 \
  9.             --slave /usr/sbin/traceroute traceroute.sbin \
  10.                 /usr/bin/traceroute.db \
  11.             --slave /usr/share/man/man1/traceroute.1.gz traceroute.1.gz \
  12.                 /usr/share/man/man1/traceroute.db.1.gz
  13.  
  14.         for ALTERNATIVE in traceroute6 lft traceproto
  15.         do
  16.             update-alternatives --install \
  17.                 /usr/bin/${ALTERNATIVE} ${ALTERNATIVE} /usr/bin/${ALTERNATIVE}.db 100 \
  18.                 --slave /usr/share/man/man1/${ALTERNATIVE}.1.gz ${ALTERNATIVE}.1.gz \
  19.                     /usr/share/man/man1/${ALTERNATIVE}.db.1.gz
  20.         done
  21.  
  22.         for ALTERNATIVE in tcptraceroute
  23.         do
  24.             update-alternatives --install \
  25.                 /usr/sbin/${ALTERNATIVE} ${ALTERNATIVE} /usr/sbin/${ALTERNATIVE}.db 100 \
  26.                 --slave /usr/share/man/man8/${ALTERNATIVE}.8.gz ${ALTERNATIVE}.8.gz \
  27.                     /usr/share/man/man8/${ALTERNATIVE}.db.8.gz
  28.         done
  29.         ;;
  30.  
  31.     abort-upgrade|abort-remove|abort-deconfigure)
  32.  
  33.         ;;
  34.  
  35.     *)
  36.         echo "postinst called with unknown argument \`${1}'" >&2
  37.         exit 1
  38.         ;;
  39. esac
  40.  
  41.  
  42.  
  43. exit 0
  44.